package com.ihisomp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 系统公用字典
 * </p>
 *
 * @author zhangyong
 * @since 2021-12-21
 */
@TableName("t_sys_dictionary")
public class SysDictionary implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 字典主键
     */
    @TableId(value = "dictionary_key", type = IdType.INPUT)
    private String dictionaryKey;

    /**
     * 数据名称
     */
    private String dictionaryName;

    /**
     * 英文名称
     */
    private String dictionaryNameEn;

    /**
     * 拼音
     */
    private String py;

    /**
     * 排序号
     */
    private Integer seqNo;

    /**
     * 上级主键
     */
    private String parentDictionaryKey;

    /**
     * 数据类型：0，数据元名称；1，数据源内容
     */
    private Integer dictionaryType;

    /**
     * 备注
     */
    private String note;


    /**
     * 上级数据字典名称
     */
    @TableField(exist = false)
    private String parentDictionaryName;

    public String getDictionaryKey() {
        return dictionaryKey;
    }

    public void setDictionaryKey(String dictionaryKey) {
        this.dictionaryKey = dictionaryKey;
    }

    public String getDictionaryName() {
        return dictionaryName;
    }

    public void setDictionaryName(String dictionaryName) {
        this.dictionaryName = dictionaryName;
    }

    public String getDictionaryNameEn() {
        return dictionaryNameEn;
    }

    public void setDictionaryNameEn(String dictionaryNameEn) {
        this.dictionaryNameEn = dictionaryNameEn;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public Integer getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(Integer seqNo) {
        this.seqNo = seqNo;
    }

    public String getParentDictionaryKey() {
        return parentDictionaryKey;
    }

    public void setParentDictionaryKey(String parentDictionaryKey) {
        this.parentDictionaryKey = parentDictionaryKey;
    }

    public Integer getDictionaryType() {
        return dictionaryType;
    }

    public void setDictionaryType(Integer dictionaryType) {
        this.dictionaryType = dictionaryType;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getParentDictionaryName() {
        return parentDictionaryName;
    }

    public void setParentDictionaryName(String parentDictionaryName) {
        this.parentDictionaryName = parentDictionaryName;
    }

    @Override
    public String toString() {
        return "SysDictionary{" +
                "dictionaryKey='" + dictionaryKey + '\'' +
                ", dictionaryName='" + dictionaryName + '\'' +
                ", dictionaryNameEn='" + dictionaryNameEn + '\'' +
                ", py='" + py + '\'' +
                ", seqNo=" + seqNo +
                ", parentDictionaryKey='" + parentDictionaryKey + '\'' +
                ", dictionaryType=" + dictionaryType +
                ", note='" + note + '\'' +
                ", parentDictionaryName='" + parentDictionaryName + '\'' +
                '}';
    }
}
